import ActorTypeUtil from "@/ActorTypeUtil";
import DamageUtil from "@/DamageUtil";
import TextTagUtil from "@/TextTagUtil";
import EffectUtil from "@/EffectUtil";
import DamageType from "@/DamageType";

export default class 暴风雪 {


    constructor() {

        let actorType = ActorTypeUtil.getActorType("暴风雪");
        /**当关联的单位 受到伤害的时候*/
        actorType.onAction = (actor, x, y,targetUnit) => {


            DamageUtil.damageEnemyUnitsInRange(actor.unit,actor.get("area",600), {base:1000,fullPros:5},
                DamageType.s_法术,x,y)
            EffectUtil.addSpecialEffectAndDestroy("Abilities\\Spells\\Human\\FlameStrike\\FlameStrikeTarget.mdl",
                x,y,5,3


                )



        }

    }



}